# Contributor: ScrumpyJack <scrumpyjack@st.ilet.to>
# Maintainer: ScrumpyJack <scrumpyjack@st.ilet.to>
pkgname=libmaa
pkgver=1.3.2
pkgrel=1
pkgdesc="Provides many low-level data structures which are helpful for writing compilers"
url="https://sourceforge.net/projects/dict/"
arch="all"
license="GPL-1.0-or-later AND LGPL-2.0-or-later"
makedepends="libtool perl flex"
subpackages="$pkgname-dev"
source="https://downloads.sourceforge.net/dict/libmaa-$pkgver.tar.gz
	fix-ppc64le-build-snprinf-buflen.patch"
options="libtool"

prepare() {
	default_prepare
	update_config_guess
}

build() {
	./configure --prefix=/usr
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="dde91e8bf1c08515ff4662282d16a03b18a1dfb16eb7b95be980ba398ed1e65d8cd88e58d454e03a03f48a5ecca8bf23b4ebaf475a98630a9178318c12a1b176  libmaa-1.3.2.tar.gz
8efab0163bbdb0e16cc4914779cddccd53b6107c0ddc5b8c370e408f837d6ababd490e52e91386df7bc69d3a973a38f19e3721f379528b17913b5a32bfab6101  fix-ppc64le-build-snprinf-buflen.patch"
